<style type="text/css">
    .qwe{
       background-color: #fafbfc;
    }
    .rty{
        background-color: #ffffff;
    }
    .header{
        text-align:center;
        border-left:1px solid #eaeff0;
        border-top:1px solid #eaeff0;
        border-bottom:1px solid #eaeff0;
        padding: 8px 0px;
        background-color: #ffffff;
        color: #58666e
    }
    .content_style{
        text-align:center;
        border-left:1px solid #eaeff0;
        border-bottom:1px solid #eaeff0;
    }
    .pad5{
        padding: 5px 15px;
    }
</style>
<div ng-controller="setgroupstate">

    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h1 class="m-n font-thin h3 ng-binding">设置团期</h1>
    </div>
        <div class="col-sm-10" align="right">
                <div style="margin-top: 15px;margin-right: 20px">
                    销售状态：
                    <select name="" id="" style="width: 100px;height: 26px" ng-model="setgroupdate" >
                        <option value="">未选择</option>
                        <option value="0">正在销售</option>
                        <option value="1">已停售</option>
                    </select>
                </div>
        </div>
        <div class="col-sm-2" style="padding-left:0px" >
                <div style="margin-top: 5%;margin-right: 80px;">
                 <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="search()">搜索</button>
                 </div>
        </div>


        <div class="col-sm-12">
            <div class="pull-left header" style="height: 60px; width: 11%">
                <div style="padding-top: 10%;">
                  <b>团期</b>
                </div>
            </div>
            <div class="pull-left header" style="height: 60px; width: 11%"><b>成人结算价<br>成人销售价</b></div>
            <div class="pull-left header" style="height: 60px; width: 11%"><b>儿童结算价<br>儿童销售价</b></div>

            <div class="pull-left header" style="height: 60px; width: 11%"><b>单房差结算价<br>单房差销售价</b></div>
            <div class="pull-left header" style="height: 60px; width: 11%">
                <div style="padding-top: 10%;">
                    <b>库存类型</b>
                </div>

            </div>
            <div class="pull-left header" style="height: 60px; width: 11%"><b>库存总量<br>剩余库存</b></div>
            <div class="pull-left header" style="height: 60px; width: 11%">
                <div style="padding-top: 10%;">
                    <b>提前预定</b>
                </div>
            </div>
            <div class="pull-left header" style="height: 60px; width: 11%">
                <div style="padding-top: 10%;">
                    <b>退改类型</b>
                </div>

            </div>
            <div class="pull-left header" style="height: 60px; width: 12%;border-right:1px solid #eaeff0">
                <div style="padding-top: 10%;">
                    <b>销售状态</b>
                </div>
            </div>
        </div>
        <div class="col-sm-12" ng-repeat="item in a ">

            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">
                <div style="padding-top: 10%;">
                    {{item.tour_date}}
                </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">
            <div ng-if="item.adultbanno">
                {{item.adult_call_price}}<br> {{item.adult_sale_price}}
            </div>
            <div ng-if="item.adultbanyes">
                <div style="padding-top: 10%;">
                    {{item.adult_ban}}
                </div>
            </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">
                    <div ng-if="item.childrenbanno">
                        {{item.children_call_price}}<br> {{item.children_sale_price}}
                    </div>
                    <div ng-if="item.childrenbanyes">
                        <div style="padding-top: 10%;">
                            {{item.children_ban}}
                        </div>
                    </div>

            </div>

            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">
                    <div ng-if="item.single_roombanno">
                {{item.single_room_call_price}}<br> {{item.single_room_sale_price}}
                    </div>
                    <div ng-if="item.single_roombanyes">
                        <div style="padding-top: 10%;">
                             {{item.single_room_ban}}
                        </div>
                    </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">
                <div style="padding-top: 10%;">
                    {{item.stock_type}}
                </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11%; padding: 8px 0px">{{item.stock_totals}}<br> {{item.stock}}</div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11% ;padding: 8px 0px">
                <div style="padding-top: 10%;">
                    {{item.materials_advance_reserve_day}}天{{item.materials_advance_reserve_hour}}时{{item.materials_advance_reserve_minute}}分
                </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 11% ;padding: 8px 0px">
                <div style="padding-top: 10%;">
                    {{item.back_rule_type}}
                </div>
            </div>
            <div  ng-class="{true:'qwe', false:'rty'}[$index%2 == 0]" class="pull-left content_style" style="height: 60px; width: 12%; padding: 8px 0px">
                <div style="padding:6%">
                    <button class="{{item.btncolor}}" ng-click=setgroup01(item)
                    style="width:70px;height:30px;padding-left: 6%;padding-top:4px" >
                        {{item.close_group}}
                    </button>
                </div>

            </div>
        </div>
                    
    <div class="col-sm-12">

    </div>
    <div class="col-sm-12">
    <div>
       &nbsp;&nbsp;&nbsp;&nbsp;
    </div>
         <div class="text-right">
        <pagination
            total-items="totalItems"
            ng-model="currentPage"
            ng-change="pageChanged()"
            previous-text="上一页"
            next-text="下一页"
            first-text="首页"
            last-text="尾页"
            max-size="5"
            boundary-links="true"
            rotate="false"
            items-per-page="itemsPerPage"
            class="m-t-none m-b"></pagination>
        </div>
    </div>

</div>
